package com.ruoyi.project.manhua.member.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;


/**
 * 用户表
 *
 * @author Mark
 * @email sunlightcs@gmail.com
 * @date 2020-10-13 11:31:58
 */
public class MemberEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 用户id
	 */
	private Integer userId;
	/**
	 * 微信openid
	 */
	private String openId;
	/**
	 * 团队编码
	 */
	private String teamCoding;


	/**
	 * 个人消费金额
	 */
	private BigDecimal orderMoney;

	/**
	 * 佣金
	 */
	private BigDecimal money;


	/**
	 * 团队人数
	 */
	private Integer teamCount;

	/**
	 * Token
	 */
	private String accessToken;
	/**
	 * 公众号唯一标识
	 */
	private String appId;
	/**
	 * 用户头像
	 */
	private String avatar;
	/**
	 * 用户名
	 */
	private String username;
	/**
	 * 手机号
	 */
	private String mobile;
	/**
	 * 密码
	 */
	private String password;
	/**
	 * 支付密码
	 */
	private String paymentPassword;
	/**
	 * 创建时间
	 */
	private Date createTime;
	/**
	 * 推荐人
	 */
	private Integer recommend;
	/**
	 * 会员等级
	 */
	private String level;

	/**
	 * 会员等级名称
	 */
	private String levelName;

	/**
	 * 当前余额
	 */
	private BigDecimal balance;
	/**
	 * 金币
	 */
	private Integer gold;
	/**
	 * 最后登录时间
	 */
	private Date logInTime;
	/**
	 * 会员来源
	 */
	private String source;
	/**
	 * 当前状态：1为正常登录，2为禁用
	 */
	private Integer status;
	/**
	 * 银行卡号
	 */
	private String card;
	/**
	 * 开户银行
	 */
	private String bank;
	/**
	 * 支付宝账号姓名
	 */
	private String aliName;
	/**
	 * 支付宝账号
	 */
	private String aliUser;
	/**
	 * 用户积分
	 */
	private BigDecimal integral;

	/**
	 * 累计金额
	 */
	private BigDecimal accumulativeAmount;

	/* 当日注册人数 */
	private String todayMember;

	/* 单日注册人数需要使用的别名日期 */
	private Date riqi;

	private List<MemberEntity> children;

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	public String getTeamCoding() {
		return teamCoding;
	}

	public void setTeamCoding(String teamCoding) {
		this.teamCoding = teamCoding;
	}

	public BigDecimal getOrderMoney() {
		return orderMoney;
	}

	public void setOrderMoney(BigDecimal orderMoney) {
		this.orderMoney = orderMoney;
	}

	public BigDecimal getMoney() {
		return money;
	}

	public void setMoney(BigDecimal money) {
		this.money = money;
	}

	public Integer getTeamCount() {
		return teamCount;
	}

	public void setTeamCount(Integer teamCount) {
		this.teamCount = teamCount;
	}

	public String getAccessToken() {
		return accessToken;
	}

	public void setAccessToken(String accessToken) {
		this.accessToken = accessToken;
	}

	public String getAppId() {
		return appId;
	}

	public void setAppId(String appId) {
		this.appId = appId;
	}

	public String getAvatar() {
		return avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getPaymentPassword() {
		return paymentPassword;
	}

	public void setPaymentPassword(String paymentPassword) {
		this.paymentPassword = paymentPassword;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getRecommend() {
		return recommend;
	}

	public void setRecommend(Integer recommend) {
		this.recommend = recommend;
	}

	public String getLevel() {
		return level;
	}

	public void setLevel(String level) {
		this.level = level;
	}

	public String getLevelName() {
		return levelName;
	}

	public void setLevelName(String levelName) {
		this.levelName = levelName;
	}

	public BigDecimal getBalance() {
		return balance;
	}

	public void setBalance(BigDecimal balance) {
		this.balance = balance;
	}

	public Integer getGold() {
		return gold;
	}

	public void setGold(Integer gold) {
		this.gold = gold;
	}

	public Date getLogInTime() {
		return logInTime;
	}

	public void setLogInTime(Date logInTime) {
		this.logInTime = logInTime;
	}

	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getCard() {
		return card;
	}

	public void setCard(String card) {
		this.card = card;
	}

	public String getBank() {
		return bank;
	}

	public void setBank(String bank) {
		this.bank = bank;
	}

	public String getAliName() {
		return aliName;
	}

	public void setAliName(String aliName) {
		this.aliName = aliName;
	}

	public String getAliUser() {
		return aliUser;
	}

	public void setAliUser(String aliUser) {
		this.aliUser = aliUser;
	}

	public BigDecimal getIntegral() {
		return integral;
	}

	public void setIntegral(BigDecimal integral) {
		this.integral = integral;
	}

	public BigDecimal getAccumulativeAmount() {
		return accumulativeAmount;
	}

	public void setAccumulativeAmount(BigDecimal accumulativeAmount) {
		this.accumulativeAmount = accumulativeAmount;
	}

	public String getTodayMember() {
		return todayMember;
	}

	public void setTodayMember(String todayMember) {
		this.todayMember = todayMember;
	}

	public Date getRiqi() {
		return riqi;
	}

	public void setRiqi(Date riqi) {
		this.riqi = riqi;
	}

	public List<MemberEntity> getChildren() {
		return children;
	}

	public void setChildren(List<MemberEntity> children) {
		this.children = children;
	}

	@Override
	public String toString() {
		return "MemberEntity{" +
				"userId=" + userId +
				", openId='" + openId + '\'' +
				", teamCoding='" + teamCoding + '\'' +
				", orderMoney=" + orderMoney +
				", money=" + money +
				", teamCount=" + teamCount +
				", accessToken='" + accessToken + '\'' +
				", appId='" + appId + '\'' +
				", avatar='" + avatar + '\'' +
				", username='" + username + '\'' +
				", mobile='" + mobile + '\'' +
				", password='" + password + '\'' +
				", paymentPassword='" + paymentPassword + '\'' +
				", createTime=" + createTime +
				", recommend=" + recommend +
				", level='" + level + '\'' +
				", levelName='" + levelName + '\'' +
				", balance=" + balance +
				", gold=" + gold +
				", logInTime=" + logInTime +
				", source='" + source + '\'' +
				", status=" + status +
				", card='" + card + '\'' +
				", bank='" + bank + '\'' +
				", aliName='" + aliName + '\'' +
				", aliUser='" + aliUser + '\'' +
				", integral=" + integral +
				", accumulativeAmount=" + accumulativeAmount +
				", todayMember='" + todayMember + '\'' +
				", riqi=" + riqi +
				", children=" + children +
				'}';
	}
}
